import {MyHttpException} from "./MyHttpException";
import {MyHttpStatusEnum} from "../enum/MyHttpStatusEnum";

export class BusinessException extends MyHttpException{
    constructor(msg:string, code?: MyHttpStatusEnum) {
        super(msg || "错误", code || MyHttpStatusEnum.BUSINESS_ERROR);
    }
}
